//
//  ServiceViewController.m
//  FKGW
//
//  Created by song ce on 2017/2/17.
//  Copyright © 2017年 song ce. All rights reserved.
//

#import "ServiceViewController.h"

@interface ServiceViewController ()
@property(nonatomic,assign)BOOL isDApageContainerRight;//记录是否加载过数据
@property(nonatomic,strong)UIImageView *noDataIUmageV;

@end

@implementation ServiceViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    [[NSNotificationCenter defaultCenter ]addObserver:self selector:@selector(ll) name:@"DAPagesContainerPrivate" object:nil];
}

-(void)ll{
    if(self.isDApageContainerRight) return;
    self.isDApageContainerRight = YES;
    DLog(@"服务号将要出现");
//    [MBProgressHUD showTipMessageInWindow:@"没有服务号记录"];
    [self.view addSubview:self.noDataIUmageV];
}

-(UIImageView *)noDataIUmageV{
    if(_noDataIUmageV==nil){
        _noDataIUmageV = [[UIImageView alloc]initWithImage:[UIImage imageNamed:@"icon_zanwushuju"]];
        _noDataIUmageV.frame = CGRectMake((Main_Screen_Width-100)/2, (self.view.size.height-115-49-44-kNaviBarHeight)/2, 100, 115);
    }
    return _noDataIUmageV;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
